REM UTF-8
@echo off
setlocal

REM Set default values
set "input_file=input.jsonl"
set "output_file=output.jsonl"
set "start_line=0"
set "num_lines=1000"

REM Get input file
set /p "input_file=Please enter the input file path (default is %input_file%): "
if "%input_file%"=="" set "input_file=%input_file%"

REM Get output file
set /p "output_file=Please enter the output file path (default is %output_file%): "
if "%output_file%"=="" set "output_file=%output_file%"

REM Get starting line
set /p "start_line=Please enter the starting line number (default is %start_line%): "
if "%start_line%"=="" set "start_line=%start_line%"

REM Get number of lines to process
set /p "num_lines=Please enter the number of lines to process (default is %num_lines%, enter Infinity to process all lines): "
if "%num_lines%"=="" set "num_lines=%num_lines%"

REM Build command
set "command=Data_T.exe -i %input_file% -o %output_file% -s %start_line% -l %num_lines%"

echo.
echo The command to be executed: %command%
echo.

REM Execute command
%command%

pause

endlocal